<?php
	$title = the_title_attribute('echo=0');
	$title = !empty($title) ? $title : __('(untitled)', PADD_THEME_SLUG);
?>
<div id="post-<?php the_ID(); ?>" <?php post_class('entry'); ?>>
	<div class="entry-header clear-fix">
		<h1 class="entry-title">
			<a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s', PADD_THEME_SLUG), $title); ?>">
				<?php
					$title = get_the_title();
					if (!empty($title)) {
						echo $title;
					} else {
						_e('(untitled)', PADD_THEME_SLUG);
					}
				?>
			</a>
		</h1>
		<?php if (!is_page()) : ?>
		<p class="meta">
			<span class="date"><?php the_time(__('F j, Y', PADD_THEME_SLUG)); ?></span>
			<span class="no-display"> | </span>
			<a class="comments" href="<?php comments_link(); ?>"><?php comments_number(__('No comments yet', PADD_THEME_SLUG), __('1 Comment', PADD_THEME_SLUG), __('% Comments', PADD_THEME_SLUG)) ?></a>
		</p.>
		<?php endif; ?>
	</div>
	<div class="entry-content">
		<?php the_content(); ?>
		<div class="clear"></div>
		<?php if (!is_page() && '1' == Padd_Option::get('share_button_enable')) : ?>
		<div class="entry-share">
			<?php padd_theme_share_button() ?>
		</div>
		<?php endif; ?>
		<?php wp_link_pages(array('before' => '<p class="pages"><strong>' . __('Pages:', PADD_THEME_SLUG). '</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
	</div>
</div>

